﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
    public class DALPaises : DALBase
    {
        private static string cmdPaisId = "Select * From Paises Where PaiId = @PaiId ";

        public SqlDataReader BuscarPaisPorId(int PaisId)
        {
            SqlConnection con = new SqlConnection();
            SqlParameter param = new SqlParameter();
            List<SqlParameter> lstparameters = new List<SqlParameter>();
            lstparameters.Add(new SqlParameter("@PaiId", PaisId));
            SqlDataReader dr = select(lstparameters, cmdPaisId, CommandType.Text);
            return dr;

        }

    }
}
